import { defineStore } from 'pinia'

const useUserStore = defineStore('user', {
  state: () => {
    return {
      number: 0,
    }
  },
  getters: {},
  actions: {
    setNumber(number: number) {
      this.number = number
    },
  },
  persist: {
    enabled: true,
    encryptionKey: 'user',
  },
})

export { useUserStore }
